import request from "../utils/request"


// 通过code获取登录态信息
export function getLoginInformation(data){
  return request.post("wxLogin/validateLogon",data,{
    customHeader:{'content-type': 'application/x-www-form-urlencoded'}, // 默认值
    noAuth: true
  });
}

// 获取手机验证码
export function getVerificationCode(data){
  return request.post("wxLogin/sendSms",data,{
    customHeader:{'content-type': 'application/x-www-form-urlencoded'}, // 默认值
    noAuth: true
  });
}

// 用户登录
export function userLogin(data){
  return request.post("/wxLogin/login", data,{
    customHeader:{'content-type': 'application/json'}, // 默认值
    noAuth: true
  });
}